package com.jindreamit.m3u8.download.util;

import redis.clients.jedis.Jedis;

public class RedisUtils {

    static private Jedis jedis;

    static {
        jedis = new Jedis("localhost");
    }

    static synchronized public String get(String key) {
        return jedis.get(key);
    }

    static synchronized public void set(String key, String value) {
        jedis.set(key, value);
    }
    static synchronized public void append(String key,String value){
        jedis.append(key, value);
    }
    static synchronized public Jedis jedis(){
        return jedis;
    }

}
